import request from './request';
//获取知识产权列表
export function getIntellectualProperty(params: any) {
  return request({
    url: '/kjy/intellectual-property/list',
    method: 'get',
    params: params,
  });
}


//获取自己知识产权列表
export function getMyIntellectualProperty(params:any) {
  return request({
    url: "/kjy/intellectual-property/listByUserId",
    method: "get",
    params
  });
}

//增加知识产权
export function addInfo(data: any) {
  return request({
    url: '/kjy/intellectual-property',
    method: 'post',
    data: data,
  });
}

//修改知识产权
export function updateInfo(data: any) {
  return request({
    url: '/kjy/intellectual-property',
    method: 'put',
    data: data,
  });
}

//删除知识产权
export function delInfo(id: any) {
  return request({
    url: '/kjy/intellectual-property/' + id,
    method: 'delete',
  });
}

//获取专利类型
export function getPatentType() {
  return request({
    url: "/system/dict/data/type/enterprise_activity",
    method: "get"
  });
}